<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="${ctx}/css/common.css" />
<jsp:include page="../inc.jsp"></jsp:include>

<meta http-equiv="X-UA-Compatible" content="edge" />
<title>电子对账单</title>
<style>
	#tb{
   		overflow:hidden;
   		width:505px;
   		margin:0 auto;
   		padding:3% 0;
   		}
   		#tb ul{
   		float:left;
   		padding-left:0px;
   		}
   		#tb .list{
   		width:150px;
   		text-align:center;
   		color:#3989c8;
   		}
   		
   		#tb ul li{
   		border:1px solid #dcdcdc;
   		font-size:12px;
   		height:30px;
   		line-height:30px;
   		list-style:none;
   		}
   		#tb .list li + li{
   		 border-top:0px;  
   		}
   		#tb .list_li li + li{
   		 border-top:0px;  
   		}
   		#tb .list_li li{
   		  width:350px;
   		  text-align:center;
   		  border-left:0px;
   		 
   		}
   		
   		
</style>
</head>
<body>
	<div id="tb">
		<ul class="list">
			<li>方式</li>
         	<li>收款账户名</li>
         	<li>收款银行</li>
         	<li>付款账户</li>
         	<li>付款银行</li>
         	<li>结算单号</li>
         	<li>付款金额</li>
         	<li>付款时间</li>
		</ul>
         <ul class="list_li">
         	<li id="paymentType"></li>
         	<li id="receiveAccount"></li>
         	<li id="receiveBank"></li>
         	<li id="paymentAccount"></li>
         	<li id="paymentBank"></li>
         	<li id="paymentNo"></li>
         	<li id="paymentMoney"></li>
         	<li id="paymentTime"></li>
         </ul>
     </div> 
</body>

<script type="text/javascript">

	
		$.ajax({
			type:"get",
			url:'${ctx}/statement/statementDetail/${param.cashNo}?temp='+Math.random(),
			dataType:'json',
			async:true,
			success:function(data){
				if(data.success==true){
					var paymentBank=data.obj.paymentBank;
					paymentBank="上海浦东发展银行股份有限公司天津科技支行";
					
					//对账单详情表格
					$("#paymentType").text(CommonConverter.toPayTypeStr(data.obj.paymentType));
					$("#receiveAccount").text(CommonConverter.toEmptyString(data.obj.receiveAccount));
					$("#receiveBank").text(CommonConverter.toNullString(data.obj.receiveBank));
					$("#paymentAccount").text("77230154740008953");
					$("#paymentBank").text(paymentBank);
					$("#paymentNo").text(CommonConverter.toEmptyString(data.obj.paymentNo));
					$("#paymentMoney").text(CommonConverter.formatMoney(data.obj.paymentMoney)+" CNY");
					$("#paymentTime").text(data.obj.paymentTime);
				}	
			}
		});

	
</script>
</html>